package com.nanbei.tree;

/**
 * @ClassDescription:  二叉搜索树
 * @JdkVersion: 17
 * @Author: BaoShan.li
 * @Created: 2023/12/18 13:58
 */
public class BSTNode {

    int key;
    Object value;
    BSTNode left;
    BSTNode right;

    public BSTNode(int key) {
        this.key = key;
    }

    public BSTNode(int key, Object value) {
        this.key = key;
        this.value = value;
    }

    public BSTNode(int key, Object value, BSTNode left, BSTNode right) {
        this.key = key;
        this.value = value;
        this.left = left;
        this.right = right;
    }
}
